package se.webbzon.boltzmann.minigame.sandbox;

public class DefaultSandBoxAnchor implements SandBoxAnchor {
	
	// The position and size of the anchor
	private double x, y, w, h;
	
	/*============================================================
	Constructors
	============================================================*/
	
	public DefaultSandBoxAnchor() {
		this(0,0);
	}
	
	public DefaultSandBoxAnchor(double x, double y) {
		this(x,y,0,0);
	}
	
	public DefaultSandBoxAnchor(double x, double y, double w, double h) {
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Sets the x-position of this sand box anchor. **/
	public void setX(double x) {
		this.x = x;
	}

	@Override public double getX() {
		return x;
	}

	/** Sets the y-position of this sand box anchor. **/
	public void setY(double y) {
		this.y = y;
	}

	@Override public double getY() {
		return y;
	}
	
	/** Sets the width of this sand box anchor. **/
	public void setWidth(double w) {
		this.w = w;
	}

	@Override public double getWidth() {
		return w;
	}
	
	/** Sets the height of this sand box anchor. **/
	public void setHeight(double h) {
		this.h = h;
	}

	@Override public double getHeight() {
		return h;
	}

}
